﻿using SmallJob.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmallShop.Services.Interfaces
{
    public interface IMConversationService :IBaseMongoService<MConversation> 
    {        
        List<MConversation> GetConversationByID(int userid);

        MConversation GetConversationByShortID(String shortid);
        void UpdateLastMessage(String cvsid, MMessage mes);

        List<MConversation> GetConversationOrderByID(int userid);
        List<MConversation> GetConversationByPage(int page, int pagesize, out long total, int userid, int type);
        List<MConversation> GetConversationOrderByPage(int page, int pagesize, out long total, int userid, bool mysell);
        void MakeCvsNoDisplay(String shortid);

    }
}
